package org.hughie.springframework.test.event;

import org.hughie.springframework.context.ApplicationListener;
import org.hughie.springframework.stereotype.Component;

/**
 * @author hughie.cheng
 * @since 2023/9/19
 */
@Component
public class CustomListener implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println(event.getId());
        System.out.println(event.getMessage());
    }
}
